Building a CPU from the ground up Part 2 - Multiplexers and Demultilexers (muxes and demuxes)

Multiplexors

A multiplexer basically selects one of multiple inputs to be fed to a single output. For example, if there are two modules connected to an output display a multiplexer will select which one is displayed. In the 2:1 mux (for short) below when S is set to 0 Input 1 passes through to the output, when S is set to 1, Input 2 passes through to the output. The 4:1 works in the same way but it has two selectors which are set using binary 00, 01, 10, 11 to allow inputs from 1 to 4 to pass through to the output Q. When building the 4:1 mux I have used the circuitverse 2:1 mux modules and when building the 8:1 mux I’ve used the 4:1 and 2:1 muxes.

Demultiplexors

A demultiplexor basically does the reverse of a multiplexor. It takes one input and using select lines passes it through to one of a selection of multiple outputs. Again I’ve used the circuitverse module for the 1:2 demux when creating the 1:4 demux and so on for the 1:8 demux and 1:16 demux. Feel free to experiment with them below.

Comments